package online.longzipeng.mywebdemo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author: lzp
 * @description: 静态变量配置测试
 * @Date: 2023/3/15
 */
@Component
public class MyConfig3 {

	@Value("${myConfig.appKey}")
	private String appKeyT;

	@Value("${myConfig.appSecret}")
	private String appSecretT;

	public static String appKey;

	public static String appSecret;

	@PostConstruct
	public void init() {
		MyConfig3.appKey = appKeyT;
		MyConfig3.appSecret = appSecretT;
	}

}
